package com.zhangc.blog.base;

import org.springframework.stereotype.Service;

import com.zhangc.blog.base.validator.AbstractServiceExceptionFactory;
import com.zhangc.blog.base.validator.ServiceException;
import com.zhangc.blog.base.validator.ServiceExceptionNameProvider;

/**
 * 功能描述:<br>
 *
 * @author wx:fdzhangc
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Service
public class BlogServiceExceptionFactory extends AbstractServiceExceptionFactory {
    @Override
    public ServiceException create(String code, String message) {
        return new SoofServiceException(code, message);
    }

    @Override
    public ServiceException create(ServiceExceptionNameProvider provider, Object... args) {
        return new SoofServiceException(provider, args);
    }
}
